package com.sywb.chuangyebao.view.fragment;

import android.os.Bundle;
import android.view.View;

import com.sywb.chuangyebao.R;
import com.sywb.chuangyebao.contract.BaseRefreshContract;

import org.bining.footstone.widget.PullToRefreshView;

/**
 * 刷新列表Fragment
 */
public abstract class BaseRefreshFragment<T extends BaseRefreshContract.Presenter> extends BaseRecyclerFragment<T> implements BaseRefreshContract.View {

    protected PullToRefreshView commonRefresh;

    @Override
    public int getLayoutId(Bundle bundle) {
        return R.layout.layout_recycler_refresh;
    }

    @Override
    public void initView(View view, Bundle bundle) {
        super.initView(view, bundle);
        commonRefresh = getView(R.id.common_refresh);
    }

    @Override
    public PullToRefreshView getPullToRefreshView() {
        return commonRefresh;
    }

}
